.\"
.\"	$OpenBSD: SSL_set_verify_result.3,v 1.2 2014/12/02 14:11:01 jmc Exp $
.\"
.Dd $Mdocdate: December 2 2014 $
.Dt SSL_SET_VERIFY_RESULT 3
.Os
.Sh NAME
.Nm SSL_set_verify_result
.Nd override result of peer certificate verification
.Sh SYNOPSIS
.In openssl/ssl.h
.Ft void
.Fn SSL_set_verify_result "SSL *ssl" "long verify_result"
.Sh DESCRIPTION
.Fn SSL_set_verify_result
sets
.Fa verify_result
of the object
.Fa ssl
to be the result of the verification of the X509 certificate presented by the
peer, if any.
.Sh NOTES
.Fn SSL_set_verify_result
overrides the verification result.
It only changes the verification result of the
.Fa ssl
object.
It does not become part of the established session, so if the session is to be
reused later, the original value will reappear.
.Pp
The valid codes for
.Fa verify_result
are documented in
.Xr openssl 1 .
.Sh RETURN VALUES
.Fn SSL_set_verify_result
does not provide a return value.
.Sh SEE ALSO
.Xr openssl 1 ,
.Xr ssl 3 ,
.Xr SSL_get_peer_certificate 3 ,
.Xr SSL_get_verify_result 3
